<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<meta name="robots" content="noarchive">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<title>发布任务</title>
		<meta content="发布任务" name="keywords" />
		<meta content="发布任务" name="description" />
		<!--<link href="templates/400011/skins/default/member.css" rel="stylesheet" type="text/css" />-->
		<script src="js/jquery.min.js"></script>
		<script src="js/base.min.js" id="jsbase" source="ysr"></script>
		<script src="js/layer.js"></script>
		<link rel="stylesheet" type="text/css" href="css/bootstrap-datetimepicker.min.css" />
		<script type="text/javascript" src="js/bootstrap-datetimepicker.js"></script>
		<script type="text/javascript" src="js/bootstrap-datetimepicker.zh-CN.js"></script>
		<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
		<link rel="stylesheet" type="text/css" href="css/bootstrap-theme.min.css">
		<link rel="stylesheet" type="text/css" href="css/common.css">
		<link rel="stylesheet" type="text/css" href="css/module.css">
		<link rel="stylesheet" type="text/css" href="css/global2471.css">
		<script type="text/javascript" src="js/bootstrap.min.js"></script>
		<link rel="stylesheet" type="text/css" href="css/base.min.css" />
		<link rel="stylesheet" type="text/css" href="css/business.css" />
		<script type="text/javascript" src="js/global.min.js"></script>
		<link rel="stylesheet" type="text/css" href="css/releasetaskf700.css">
		<script type="text/javascript" src="js/image.min.js"></script>
		<script type="text/javascript" src="js/jquery.validate.min.js"></script>
		
		<!--<link rel="stylesheet" href="css/nomal-bs.css" />-->
		<link rel="stylesheet" href="css/nomal-bs.css" />
		<script>
			var thisPageId = 'home';
			var siteId = '1022';
			if(siteId == '1013') {
				var currSellerId = '133320';
				var yushu;
				if(currSellerId == '') {
					yushu = (new Date().getTime()) % 4;
				} else {
					yushu = parseInt(currSellerId) % 4;
				}
				$('#imgqrcode').attr('src', '/v1/site/' + siteId + '/wx' + yushu + '.png');
			}
		</script>
		<script type="text/javascript" src="js/main.min.js"></script>
		<style>.hidden{display: none;}</style>
	</head>

	<body>
		<div id="header" style="padding:0px;">
			<div class="top top-login">
				<div class="w-1k f-cb">
					<ul class="f-cb f-fr">
						<li class="f-fl  p-r">
							<div>
								<!--                         <a class="tp-nv">
                            <img src="images/level/seller_1.png" style="padding-left:13px;">
                        </a> -->
								<a class="tp-nv" style="padding-right:13px;" href="/member/shopaccount.php" id="div-uname">13592507037 </a>
							</div>
						</li>
						<li class="f-fl">
							<span class="tp-nv v-bar" style="padding-left:0px;">|</span>
						</li>
						<li class="f-fl">
							<a class="tp-nv" href="/pay/showpayment.php?tab=online" title="账户中心">本金：
								<span class="ye" id="div-seller-benjin">34.00</span>元</a>
							<a class="striking" title="账户充值" href="/pay/showpayment.php?tab=online"> 充值</a>&nbsp; &nbsp&nbsp&nbsp&nbsp佣金：
							<span class="ye" id="div-seller-benjin1">10.00</span>金
							<a class="striking" title="账户充值" href="/pay/pay.php"> 充值</a>
						</li>
						<li class="f-fl">
							<span class="tp-nv v-bar" style="padding-left:13px;padding-right:13px;">|</span>
						</li>
						<li class="f-fl">
							<a style="display:block;" href="/member/logout.php"><span>退出</span></a>
						</li>
						<li class="f-fl">
							<span class="tp-nv v-bar" style="padding-left:13px;padding-right:13px;">|</span>
						</li>
						<li class="f-fl">
							<a class="edit_pwd" data-toggle="modal" data-target=".change_pwd">修改密码</a>
						</li>
					</ul>
				</div>
			</div>
		</div>
		<div id="navgation" style="padding:0px 0px 15px 0px;">
			<div class="hd">
				<div class="w-1k f-cb p-r">
					<a href="/member/index.php"><img class="logo" src="images/logo4.png"></a>
					<ul class="f-cb f-fr f-fr-navtab">
						<!--<li class="f-fl "><a class="hd-nv a_mehome active" href="/member/index.php">商家中心</a></li>-->
					</ul>
				</div>
			</div>
		</div>

		<div class="w-1k" style="margin-top: 10px;margin-bottom: 10px;text-align: center;" id="div-new-article"></div>
		<div class="row w-1k ct-wrap f-cb">
			<!--<script src="js/task1.js"></script>-->
			<div class="f-fl left-nav">
				<ul class="nav-group">
					<li class="nav-item p-r a_home ">
						<a class="click-wrap" href="/member/index.php">
							<span class="nav-btn nb0">商家公告</span>
						</a>
					</li>
					<li class="nav-item p-r a_message a_messae_view ">
						<a class="click-wrap" href="/member/email.php">
							<span class="nav-btn nb5">邮件</span>
							<div class="num-count email"></div>
						</a>
					</li>
					<li class="nav-item p-r a_task_step1 a_task_step2 a_task_step3 a_task_step4 a_task_price a_openvip active">
						<a class="click-wrap" href="/member/shopquest.php?act=add">
							<span class="nav-btn nb1">发布任务</span>
						</a>
					</li>
					<li class="nav-item p-r a_shop ">
						<a class="click-wrap" href="/member/shopaccount.php">
							<span class="nav-btn nb3">店铺管理</span>
						</a>
					</li>
					<li class="nav-item p-r a_task_list ">
						<a class="click-wrap" href="/member/shopquest.php">
							<span class="nav-btn nb2">任务管理</span>
							<div class="num-count task"></div>
						</a>
					</li>
					<li class="nav-item p-r a_task_list ">
						<a class="click-wrap" href="/member/cancel.php">
							<span class="nav-btn nb2">可撤销订单</span>
							<div class="num-count task"></div>
						</a>
					</li>
					<li class="nav-item p-r a_task_list ">
						<a class="click-wrap" href="/member/cancel_browse.php">
							<span class="nav-btn nb2">已撤销订单</span>
							<div class="num-count task"></div>
						</a>
					</li>
					<li class="nav-item p-r a_fund ">
						<a class="click-wrap" href="/pay/pay.php">
							<span class="nav-btn nb4">资金明细</span></a>
					</li>
					<li class="nav-item p-r a_recharge ">
						<a class="click-wrap" href="/pay/showpayment.php?tab=online">
							<span class="nav-btn nb3">充值提现</span>
						</a>
					</li>
					<li class="nav-item p-r a_shop ">
						<a class="click-wrap" href="/member/show_price.php">
							<span class="nav-btn nb3">价格明细</span>
						</a>
					</li>
					<li class="nav-item p-r a_appeal a_appeal_view ">
						<a class="click-wrap" href="/member/appeal.php">
							<span class="nav-btn nb5">申诉中心</span>
							<div class="num-count appeal"></div>
						</a>
					</li>
					<li class="nav-item p-r a_extension ">
						<a class="click-wrap" href="/member/extension.php">
							<span class="nav-btn nb6">邀请好友</span>
						</a>
					</li>
					<li class="nav-item p-r a_backlist ">
						<a class="click-wrap" href="/member/backlist.php">
							<span class="nav-btn nb7">黑名单</span>
						</a>
					</li>
					<li class="nav-item p-r a_feedback ">
						<a class="click-wrap" href="/member/feedback.php">
							<span class="nav-btn nb8">意见反馈</span>
						</a>
					</li>
				</ul>
			</div>

			<style>
				label {
					cursor: pointer;
					font-weight: 100;
				}
				
				.img143 {
					width: 143px;
					height: 143px
				}
				
				.taocommand {
					border: 1px solid #ececed;
					width: 400px;
					height: 60px;
					padding: 4px;
				}
	


.platformType{
	height: 50px;
    margin-top: 15px;
    padding-left: 70px;
    margin-bottom: 15px;
    
}
.platformType li span{
	    display: block;
    position: absolute;
    line-height: 48px;
    left: 43px;
    font-size: 16px;
    color: #cdcccb;
    font-weight: 550;
}

.platformType li{
	    float: left;
    width: 101px;
    height: 48px;
    border: 2px solid #dadbdb;
    margin-right: 20px;
    border-radius: 8px;
    background: linear-gradient(to bottom, #fefefe, #f4f4f5);
    position: relative;
}
.platformType li img{
	position: absolute;
    top: 7px;
    left: 10px;
    width: 29px;
    height: 29px;
}

.platformType .active{
	    border: 2px solid #26A69A;
    background: linear-gradient(to bottom, #feffff, #eaf0f4);
}
.platformType .active:after{
	    position: absolute;
    content: "";
    right: 0;
    bottom: 0;
    border-top: 17px solid rgba(251,255,255,0);
    border-bottom: 0px solid rgba(255,255,255,0);
    border-right: 17px solid #26a69a;
    border-left: 0px;

}
.platformType .active span {
    color: #000;
}

			</style>
			<div class="f-fl main">
				<form action="/member/shopquest.php?act=add" method="post" id="form1" name="form1" target="_self">
			<div id="step0" class="mnc">		
						<!--<h2 class="tt">发布手机淘宝任务</h2>-->
						<ul class="f-cb step-wrap" style="margin-left: 0;">
							<li class="p-r f-fl r-step act"><span>1.选择任务类型</span><img class="tri-tag" src="images/triangle_act.png">
							</li>
							<li class="p-r f-fl r-step "><span>2.填写任务信息</span><img class="tri-tag" src="images/triangle_nor.png">
							</li>
							<li class="p-r f-fl r-step "><span>3.选择任务类型</span><img class="tri-tag" src="images/triangle_nor.png">
							</li>
							<li class="p-r f-fl r-step "><span>4.选择增值服务</span><img class="tri-tag" src="images/triangle_nor.png">
							</li>
							<li class="p-r f-fl r-step "><span>5.商家附加要求</span><img class="tri-tag" src="images/triangle_nor.png">
							</li>
							<li class="p-r f-fl r-step"><span>6.支付</span><img class="tri-tag" src="images/triangle_nor.png">
							</li>
							<li class="p-r f-fl r-step  r-step-4"><span>7.发布成功</span></li>
						</ul>

						<div class="warning-info" style="border: none;background-color: transparent;">
							<p class="f-fwb"> <strong style="color: red;">所有商家都要注意在补一样平台推广务必严格控制好以下3点：</strong></p>
							<p><span class="f-fwb"> 1. </span>物流一定要有真实物流记录，一定要有全程重量并且重量跟真实商品一致！一定不要买网上那些小快递，便宜的空包（稽查系统在不断升级，有些以前没出事不代表现在或以后没事）。</p>
							<p><span class="f-fwb"> 2. </span>推广比例一定不要过高，最高最高不能超过40%。</p>
							<p><span class="f-fwb"> 3. </span>移动端搜索转化率务必不要过高，保持在行业平均转化率的1.5倍左右最佳。</p>
						</div>
						
						
						
				<div>	
						<input type="hidden" id="platformType" value="tb">
						<ul class="platformType">
											<li class="active" style="cursor: default;"><div class="tb"><img src="images/tb2.png"><span>淘宝</span></div></li>
											<li><div class="tm" style="cursor: default;"><img src="images/tm1.png"><span>天猫</span></div></li>
											<li><div class="jd" style="cursor: default;"><img src="images/jd1.png"><span>京东</span></div></li>
											<li><div class="pdd" style="cursor: default;"><img src="images/pd1.png"><span>拼多多</span></div></li>
										<div style="clear: both;"></div>
						</ul>
						
						
						
						</div>
						
						
						<script>
			$('.platformType .tb').click(function(){			
				$('.platformType .active').removeClass('active');
				$('.platformType li:nth-child(1)').addClass('active');
				$('.platformType .tb img').attr('src','images/tb2.png');
				$('.platformType .tm img').attr('src','images/tm1.png');
				$('.platformType .jd img').attr('src','images/jd1.png');
				$('.platformType .pdd img').attr('src','images/pd1.png');
                showTaskType();
                showshop();
                resetTaskTypeAndShop();
			})
			$('.platformType .tm').click(function(){
                $("#platformType").val("tm");
				$('.platformType .active').removeClass('active');
				$('.platformType li:nth-child(2)').addClass('active');
				$('.platformType .tb img').attr('src','images/tb1.png');
				$('.platformType .tm img').attr('src','images/tm2.png');
				$('.platformType .jd img').attr('src','images/jd1.png');
				$('.platformType .pdd img').attr('src','images/pd1.png');
                showTaskType();
                showshop();
                resetTaskTypeAndShop();
			})
			$('.platformType .jd').click(function(){
                $("#platformType").val("jd");
				$('.platformType .active').removeClass('active');
				$('.platformType li:nth-child(3)').addClass('active');
				$('.platformType .tb img').attr('src','images/tb1.png');
				$('.platformType .tm img').attr('src','images/tm1.png');
				$('.platformType .jd img').attr('src','images/jd2.png');
				$('.platformType .pdd img').attr('src','images/pd1.png');
                showTaskType();
                showshop();
                resetTaskTypeAndShop();
			})
			$('.platformType .pdd').click(function(){
                $("#platformType").val("pdd");
				$('.platformType .active').removeClass('active');
				$('.platformType li:nth-child(4)').addClass('active');
				$('.platformType .tb img').attr('src','images/tb1.png');
				$('.platformType .tm img').attr('src','images/tm1.png');
				$('.platformType .jd img').attr('src','images/jd1.png');
				$('.platformType .pdd img').attr('src','images/pd2.png');
                showTaskType();
                showshop();
                resetTaskTypeAndShop();
			});

            $('.wrap-tasktype').on('change', function(){
                var val = $(this).val();
                $('.tasktype-list').hide();
                $($('.tasktype-list')[val]).show();
                checkedFirstTaskType();
                if(val == "1") {
                    $(".sel-thr").hide();
				} else {
                    $(".sel-thr").show();
				}
            });
            $('.wrap-tasktype-list').delegate('.tasktype', 'change', function(event) {
                var plat = $(this).data('plat');
                var refundtype = $(this).data('refundtype');
                var type = $(this).val();
                var platformType = $("#platformType").val();
                $("input[name='plat']").val(plat);
                //$("input[name='type']").val(type);
                $("input[name='is_refundtype']").val(refundtype===undefined?'0':refundtype);
                //document.location.href="task_addnew1.php?id=&hisid=&plat=" + plat + "&type=" + type + "&is_refundtype=" + (refundtype===undefined?'0':refundtype) + "&platformType="+platformType+"#allsteptigs";
            });
            $('.shopname-list').delegate('.shopname', 'click', function(event) {
                if ($(this).is(':checked')) {
                    var isbackmoneymode = $(this).data('isbackmoneymode');
                    if (isbackmoneymode == 1) {
                        $('#backmoneymode_1').attr('checked', true);
                        $('#backmoneymode_2_li').hide();
                        $('#backmoneymode_2_li_msg').hide();
                    } else {
                        $('#backmoneymode_2_li').show();
                        $('#backmoneymode_2_li_msg').show();
                    }
                }
            });

			/**
			 * 选中第一个任务类型
			 **/
            function checkedFirstTaskType(){
                var platformType = $("#platformType").val();
                var wraptasktype = $("input[name='wraptasktype']:checked").val();
                var plat = $("input[name='type']:checked").data('plat');
                var refundtype = $("input[name='type']:checked").data('refundtype');
                $("input[name='plat']").val(plat);
                $("input[name='is_refundtype']").val(refundtype===undefined?'0':refundtype);

                if(platformType == "tb"){
					if(wraptasktype == 0){
					    $(".df-tasktype-list .tasktype_tb").eq(0).find("input[name='type']").attr("checked","checked");
					} else {
                        $(".ll-tasktype-list .tasktype_tb").eq(0).find("input[name='type']").attr("checked","checked");
					}
                } else if (platformType == "tm") {
                    if(wraptasktype == 0){
                        $(".df-tasktype-list .tasktype_tm").eq(0).find("input[name='type']").attr("checked","checked");
                    } else {
                        $(".ll-tasktype-list .tasktype_tm").eq(0).find("input[name='type']").attr("checked","checked");
                    }
                } else if (platformType == "jd") {
                    if(wraptasktype == 0){
                        $(".df-tasktype-list .tasktype_jd").eq(0).find("input[name='type']").attr("checked","checked");
                    } else {
                        $(".ll-tasktype-list .tasktype_jd").eq(0).find("input[name='type']").attr("checked","checked");
                    }
                } else if (platformType == "pdd") {
                    if(wraptasktype == 0){
                        $(".df-tasktype-list .tasktype_pdd").eq(0).find("input[name='type']").attr("checked","checked");
                    } else {
                        $(".ll-tasktype-list .tasktype_pdd").eq(0).find("input[name='type']").attr("checked","checked");
                    }
                }
			}

            /**
			 * 根据平台显示任务类型，淘宝（淘宝，天猫），天猫（天猫），京东（京东），拼多多（拼多多）
             */
            function showTaskType(){
                var platformType = $("#platformType").val();
                var backmoney_jd = $("#backmoney_jd").val();
                var backmoney_tb = $("#backmoney_tb").val();
                if(platformType == "tb"){
                    $(".tasktype_jd").hide();
                    $(".tasktype_tb").show();
                    $(".tasktype_tm").show();
                    $(".tasktype_pdd").hide();
                    $("#backmoney_text").html(backmoney_tb);
                } else if (platformType == "tm") {
                    $(".tasktype_jd").hide();
                    $(".tasktype_tb").hide();
                    $(".tasktype_tm").show();
                    $(".tasktype_pdd").hide();
                    $("#backmoney_text").html(backmoney_tb);
                } else if (platformType == "jd") {
                    $(".tasktype_jd").show();
                    $(".tasktype_tb").hide();
                    $(".tasktype_tm").hide();
                    $(".tasktype_pdd").hide();
                    $("#backmoney_text").html(backmoney_jd);
                } else if (platformType == "pdd") {
                    $(".tasktype_jd").hide();
                    $(".tasktype_tb").hide();
                    $(".tasktype_tm").hide();
                    $(".tasktype_pdd").show();
                    $("#backmoney_text").html(backmoney_jd);
                }
            }

            function showshop(){
                var platformType = $("#platformType").val();
                if(platformType == "tb"){
                    $(".shop-tb").show();
                    $(".shop-tm").show();
                    $(".shop-mls").hide();
                    $(".shop-mgj").hide();
                    $(".shop-jd").hide();
                    $(".shop-pdd").hide();
                } else if (platformType == "tm") {
                    $(".shop-tb").hide();
                    $(".shop-tm").show();
                    $(".shop-mls").hide();
                    $(".shop-mgj").hide();
                    $(".shop-jd").hide();
                    $(".shop-pdd").hide()
                } else if (platformType == "jd") {
                    $(".shop-tb").hide();
                    $(".shop-tm").hide();
                    $(".shop-mls").hide();
                    $(".shop-mgj").hide();
                    $(".shop-jd").show();
                    $(".shop-pdd").hide()
                } else if (platformType == "pdd") {
                    $(".shop-tb").hide();
                    $(".shop-tm").hide();
                    $(".shop-mls").hide();
                    $(".shop-mgj").hide();
                    $(".shop-jd").hide();
                    $(".shop-pdd").show()
                }
            }

            /**
			 * 重置任務類型和店铺
             */
            function resetTaskTypeAndShop() {
				$(".wrap-tasktype").removeAttr("checked");
				$(".tasktype-list").find("input[name='type']").removeAttr("checked");
				$(".shopname").removeAttr("checked");
            }

            showTaskType();
			showshop();




		$(function(){
			var $defaultcheckshop =  $('.shopname:checked');
			if (!!$defaultcheckshop) {
				var isbackmoneymode = $defaultcheckshop.data('isbackmoneymode');
				if (isbackmoneymode==1) {
					$('#backmoneymode_1').attr('checked', true);
					$('#backmoneymode_2_li').hide();
					$('#backmoneymode_2_li_msg').hide();
				}
			}
		});
		
						</script>
						
						
						
						<!--第一步-->
						<div class="step step-0">
							<input type="hidden" name="taskId" value="">
							<input type="hidden" name="hisid" value="">
							<input type="hidden" name="id" value="">
							<input type="hidden" name="plat" value="1">
							<input type="hidden" name="is_refundtype" value="0">
							<div class="sel-wrap">
								<div class="sel-one p-r">
									<h3 class="tt">第一步：选择任务类型&nbsp;<a href="member/show_price.php" class="striking" target="_blank" style="">查看价格表</a></h3>
									<ul class="list-inline task_type f-cb task-type-sel p-r" hidden="">
										<li class="f-fl"><label><input class="wrap-tasktype" type="radio" id="taskType1" name="taskType" value="1" checked="checked">垫付任务</label>
										</li>
										<li class="f-fl"><label><input class="wrap-tasktype" type="radio" id="taskType2" name="taskType" value="2">浏览任务</label></li>
									</ul>
									<div class="wrap-tasktype-list step">
								<!--		<ul class="tasktype-list taskType1" style="display: block;">
											<li>
												<label>
						                                <input class="tasktype" name="taskTypeItem" type="radio" value="2" shopform="1">
						                                <img class="platlogo" src="images/plat_logo.png">
						                                <span class="taskname">手机淘宝</span>任务（用户在手机淘宝app下单）
												</label>
												<img class="promptips" src="images/promptips.png">
												<div class="pop-prompt-box " style="display: none;top: -100px;left: 320px;width: 460px;">
													<div class="prompt-ct-wrap">
														<h3>手机淘宝任务</h3>
														<div class="prompt-ct">
															常规推广方式，适合有基础销量的产品操作。建议多个关键词入口进行推广计划。严格控制入口转化率。
														</div>
													</div>
													<img class="triangle" src="images/bluetri_down.png">
												</div>
											</li>
											<li class="f-pr">
												<label>
					                                <input class="tasktype" name="taskTypeItem" type="radio" value="3" shopform="1">
					                                <img class="platlogo" src="images/plat_logo.png">
					                                <span class="taskname">手机淘宝 淘口令</span>任务（用户在手机淘宝app下单）
						                        </label>
											</li>
											<li class="f-pr">
												<label>
					                                <input class="tasktype" name="taskTypeItem" type="radio" value="4" shopform="1">
					                                <img class="platlogo" src="images/plat_logo.png">
					                                <span class="taskname">手机淘宝 无截图版</span>任务（用户在手机淘宝app下单）
						                        </label>
											</li>
										</ul>-->
								<!--		<ul class="tasktype-list taskType2" style="display: none;">
											<li>
												<label>
			                                        <input class="tasktype" name="taskTypeItem" type="radio" value="201" shopform="1">
			                                        <img class="platlogo" src="images/plat_logo.png">
			                                        <span class="taskname">手机淘宝</span>浏览、收藏、加购物车、直通车（<strong style="color: red;">全真人加购，不被屏蔽不降权。</strong>）
			                                    </label>
											</li>
											<li style="display: none;">
												<label>
			                                        <input class="tasktype" name="taskTypeItem" type="radio" value="202" shopform="1">
			                                        <img class="platlogo" src="images/plat_tm.jpg">
			                                        <span class="taskname">手机天猫</span>浏览、收藏、加购物车（用户通过天猫app浏览商品）
			                                    </label>
											</li>
											<li style="display:none">
												<label>
			                                        <input class="tasktype" name="taskTypeItem" type="radio" value="203" shopform="1">
			                                        <img class="platlogo" src="images/plat_logo.png">
			                                        <span class="taskname">电脑淘宝浏览</span>任务
			                                        （用户在电脑淘宝上操作任务）
			                                    </label>
											</li>
											<li style="display: none;">
												<label>
			                                        <input class="tasktype" name="taskTypeItem" type="radio" value="204" shopform="1">
			                                        <img class="platlogo" src="images/plat_logo.png">
			                                        <span class="taskname">淘宝</span><span style="color: #157cdc;font-weight: bold;">特别</span>浏览任务
			                                        （支持淘客秒拍、聚划算、淘抢购、淘金币、淘口令或其它渠道活动，支持再次浏览已收藏<br>　　　或加入购物车的商品）
			                                    </label>
											</li>
											<li>
												<label>
			                                        <input class="tasktype" name="taskTypeItem" type="radio" value="205" shopform="3">
			                                        <img class="platlogo" src="images/icon_3.png">
			                                        <span class="taskname">手机京东</span>浏览、收藏、加购物车（用户通过京东app浏览商品）
			                                    </label>
											</li>
										</ul>-->
										<ul class="tasktype-list taskType1" style="display: block;">
											<li>
												<label>
						                                <input class="tasktype" name="taskType" type="radio" value="1" shopform="1">
						                                <img class="platlogo" src="http://39.96.17.110:80/oms_store/images/plat_logo.png">
						                                <span class="taskname">手机淘宝</span>任务 无截图版（通过找关键词浏览）
												</label>
												<img class="promptips" src="images/promptips.png">
												<div class="pop-prompt-box " style="display: none;top: -100px;left: 320px;width: 460px;">
													<div class="prompt-ct-wrap">
														<h3>手机淘宝任务 无截图版</h3>
														<div class="prompt-ct">
															常规推广方式，适合有基础销量的产品操作。建议多个关键词入口进行推广计划。严格控制入口转化率，全程只有一张支付宝付款截图，安全度较高。
														</div>
													</div>
													<img class="triangle" src="images/bluetri_down.png">
												</div>
											</li>

										
										
										
										
											
											
						                   <li>
												<label>
						                                <input class="tasktype" name="taskType" type="radio" value="2" shopform="1">
						                                <img class="platlogo" src="http://39.96.17.110:80/oms_store/images/plat_logo.png">
						                                <span class="taskname">手机淘宝</span>任务  淘口令（通过淘口令进入推广）
												</label>
												<img class="promptips" src="images/promptips.png">
												<div class="pop-prompt-box " style="top: -100px; left: 320px; width: 460px; display: none;">
													<div class="prompt-ct-wrap">
														<h3>手机淘宝任务 淘口令</h3>
														<div class="prompt-ct">
															商家发布淘口令，会员复制淘口令链接进行推广。
														</div>
													</div>
													<img class="triangle" src="images/bluetri_down.png">
												</div>
											</li>
											<li>
												<label>
						                                <input class="tasktype" name="taskType" type="radio" value="4" shopform="1">
						                                <img class="platlogo" src="http://39.96.17.110:80/oms_store/images/plat_logo.png">
						                                <span class="taskname">手机淘宝</span>任务  直通车（开通直通车后进行推广）
												</label>
												<img class="promptips" src="images/promptips.png">
												<div class="pop-prompt-box " style="top: -100px; left: 320px; width: 460px; display: none;">
													<div class="prompt-ct-wrap">
														<h3>手机淘宝任务 直通车</h3>
														<div class="prompt-ct">
															会员只能通过直通车HOT标识进店。
														</div>
													</div>
													<img class="triangle" src="images/bluetri_down.png">
												</div>
											</li>
											<li class="f-pr">
												<label>
					                                <input class="tasktype" name="taskType" type="radio" disabled="disabled" value="5" shopform="1">
					                                <img class="platlogo" src="http://39.96.17.110:80/oms_store/images/plat_logo.png">
					                                <span class="taskname">手机淘宝任务 退款单（即将开放）
						                        </span></label>
											</li>
											<li class="f-pr">
												<label>
					                                <input class="tasktype" name="taskType" type="radio" disabled="disabled" value="6" shopform="1">
					                                <img class="platlogo" src="http://39.96.17.110:80/oms_store/images/plat_logo.png">
					                                <span class="taskname">手机淘宝任务 预购单（即将开放）
						                        </span></label>
											</li>
											<li class="f-pr">
												<label>
					                                <input class="tasktype" name="taskType" type="radio" disabled="disabled" value="7" shopform="1">
					                                <img class="platlogo" src="http://39.96.17.110:80/oms_store/images/plat_logo.png">
					                                <span class="taskname">手机淘宝任务 商家审号单（即将开放）
						                        </span></label>
											</li>
											<li class="f-pr">
												<label>
					                                <input class="tasktype" name="taskType" type="radio" disabled="disabled" value="8" shopform="1">
					                                <img class="platlogo" src="http://39.96.17.110:80/oms_store/images/plat_logo.png">
					                                <span class="taskname">手机京东任务（即将开放）
						                        </span></label>
											</li>
											<li class="f-pr">
												<label>
					                                <input class="tasktype" name="taskType" type="radio" disabled="disabled" value="9" shopform="1">
					                                <img class="platlogo" src="http://39.96.17.110:80/oms_store/images/plat_logo.png">
					                                <span class="taskname">手机拼多多任务（即将开放）
						                        </span></label>
											</li>
										</ul>
									</div>
								</div>
								<div class="sel-two">
									<h3 class="tt f-pr">第二步：选择店铺<a class="striking" href="/member/shopaccount.php" style="position: absolute;top: 0px;right: 20px;">去绑店铺</a></h3>
									<ul class="shopname-list">
										<li>
											<label>
												<input class="shopname" name="shopId" type="radio" value="2248" shopform="1">
												<span class="shoptag tbshoptag">淘宝</span>低价百姓服饰店
											</label>
										</li>
									</ul>
								</div>
								<div class="sel-thr" style="display: block;">
									<h3 class="tt">第三步：选择平台返款模式</h3>
									<ul class="backmoney">
										<li><input class="back" id="fanType_1" name="fanType" type="radio" value="1" checked="checked"> 平台系统返款<span class="prompt">　（收取服务费<span class="server_striking" id="server_striking"></span>元/单）</span>
										</li>
										<li class="prompt"> <span class="striking">优先展示给用户</span>，商家押商品本金到平台，只需在“返款管理”中确认返款金额，一键返款给用户(<span class="striking">24小时内</span>)，商家无需耗费时间、人力处理退款。</li>
									</ul>
								</div>
							</div>
							<div class="next-opt">
							
								<button class="btn btn-next" type="button"></button>
							</div>
						</div>
</div>

<script>
	function showVipTip() {
		layer.open({
			type: 1,
			title: false //不显示标题栏
				,
			closeBtn: false,
			area: '350px;',
			shade: 0.8,
			id: 'LAY_VIP' //设定一个id，防止重复弹出
				,
			btn: ['去开通'],
			btnAlign: 'c',
			yes: function(index, layero) {
				Call.httpLoad('openvip.html');
			},
			moveType: 1 //拖拽模式，0或者1
				,
			content: '<div style="padding: 30px 20px;; line-height: 22px; background-color: #393D49; color: #fff; font-weight: 300;">免费体验已到期，请联系客服开通会员</div>'
		});
	}

	var vip = '0';
	var leftOrderCount = parseInt('0');
	if(vip == '1' && leftOrderCount < 1) {}

	var timer = [];
	$('.promptips').each(function(index, val) {
		$(val).on('mouseenter', function(e) {
			var $ppbox = $(this).parents('li').eq(0).find('.pop-prompt-box');
			clearTimeout(timer[index]);
			$ppbox.show();
		});
		$(val).on('mouseleave', function(e) {
			var $ppbox = $(this).parents('li').eq(0).find('.pop-prompt-box');
			timer[index] = setTimeout(function() {
				$ppbox.hide();
			}, 800);
		});
	});
	$('.pop-prompt-box').each(function(index, val) {
		$(val).on('mouseenter', function(e) {
			clearTimeout(timer[index]);
		});
		$(val).on('mouseleave', function(e) {
			$(this).hide();
		});
	});

	var settingList = JSON.stringify({
		"2": {
			"buyer_up1_commission_rate_high": "0.1",
			"buyer_up1_commission_rate_low": "0.05",
			"buyer_up2_commission_rate": "0.05",
			"chat_price": "0",
			"commisionrate": "0.6",
			"highqualityprice": "3",
			"limitage_price": "0.5",
			"limitarea_price": "1",
			"limitcategory_price": "0.5",
			"limitsex_price": "0.5",
			"limitzuan_price": "1",
			"noscreenshot_price": "0",
			"postagedeposit": "10",
			"reward_rate": "0.3",
			"saveproductprice": "0",
			"saveshopprice": "0",
			"service_emptypackage": "3.5",
			"service_platform": "2",
			"task1_extracommission": "0",
			"task1_extraprice": "0",
			"task2_extraprice": "1",
			"task3_extraprice": "2",
			"task4_extraprice": "2",
			"task_basecommission": "10"
		},
		"3": {
			"buyer_up1_commission_rate_high": "0.1",
			"buyer_up1_commission_rate_low": "0.05",
			"buyer_up2_commission_rate": "0.05",
			"chat_price": "0",
			"commisionrate": "0.6",
			"highqualityprice": "3",
			"limitage_price": "0.5",
			"limitarea_price": "1",
			"limitcategory_price": "0.5",
			"limitsex_price": "0.5",
			"limitzuan_price": "1",
			"noscreenshot_price": "0",
			"postagedeposit": "10",
			"reward_rate": "0.3",
			"saveproductprice": "0",
			"saveshopprice": "0",
			"service_emptypackage": "3.5",
			"service_platform": "2",
			"task1_extracommission": "0",
			"task1_extraprice": "0",
			"task2_extraprice": "1",
			"task3_extraprice": "2",
			"task4_extraprice": "2",
			"task_basecommission": "10"
		},
		"4": {
			"buyer_up1_commission_rate_high": "0.1",
			"buyer_up1_commission_rate_low": "0.05",
			"buyer_up2_commission_rate": "0.05",
			"chat_price": "0",
			"commisionrate": "0.6",
			"highqualityprice": "3",
			"limitage_price": "0.5",
			"limitarea_price": "1",
			"limitcategory_price": "0.5",
			"limitsex_price": "0.5",
			"limitzuan_price": "1",
			"noscreenshot_price": "0",
			"postagedeposit": "10",
			"reward_rate": "0.3",
			"saveproductprice": "0",
			"saveshopprice": "0",
			"service_emptypackage": "3.5",
			"service_platform": "2",
			"task1_extracommission": "0",
			"task1_extraprice": "0",
			"task2_extraprice": "1",
			"task3_extraprice": "2",
			"task4_extraprice": "2",
			"task_basecommission": "10"
		},
		"11": {
			"buyer_up1_commission_rate_high": "0.1",
			"buyer_up1_commission_rate_low": "0.05",
			"buyer_up2_commission_rate": "0.05",
			"chat_price": "0",
			"commisionrate": "0.6",
			"highqualityprice": "3",
			"limitage_price": "0.5",
			"limitarea_price": "1",
			"limitcategory_price": "0.5",
			"limitsex_price": "0.5",
			"limitzuan_price": "1",
			"noscreenshot_price": "0",
			"postagedeposit": "10",
			"reward_rate": "0.3",
			"saveproductprice": "0",
			"saveshopprice": "0",
			"service_emptypackage": "3.5",
			"service_platform": "0",
			"task1_extracommission": "0",
			"task1_extraprice": "0",
			"task2_extraprice": "1",
			"task3_extraprice": "2",
			"task4_extraprice": "2",
			"task_basecommission": "10"
		},
		"12": {
			"buyer_up1_commission_rate_high": "0.1",
			"buyer_up1_commission_rate_low": "0.05",
			"buyer_up2_commission_rate": "0.05",
			"chat_price": "0",
			"commisionrate": "0.6",
			"highqualityprice": "3",
			"limitage_price": "0.5",
			"limitarea_price": "1",
			"limitcategory_price": "0.5",
			"limitsex_price": "0.5",
			"limitzuan_price": "1",
			"noscreenshot_price": "0",
			"postagedeposit": "10",
			"reward_rate": "0.3",
			"saveproductprice": "0",
			"saveshopprice": "0",
			"service_emptypackage": "3.5",
			"service_platform": "0",
			"task1_extracommission": "0",
			"task1_extraprice": "0",
			"task2_extraprice": "1",
			"task3_extraprice": "2",
			"task4_extraprice": "2",
			"task_basecommission": "10"
		},
		"13": {
			"buyer_up1_commission_rate_high": "0.1",
			"buyer_up1_commission_rate_low": "0.05",
			"buyer_up2_commission_rate": "0.05",
			"chat_price": "0",
			"commisionrate": "0.6",
			"highqualityprice": "3",
			"limitage_price": "0.5",
			"limitarea_price": "1",
			"limitcategory_price": "0.5",
			"limitsex_price": "0.5",
			"limitzuan_price": "1",
			"noscreenshot_price": "0",
			"postagedeposit": "10",
			"reward_rate": "0.3",
			"saveproductprice": "0",
			"saveshopprice": "0",
			"service_emptypackage": "3.5",
			"service_platform": "0",
			"task1_extracommission": "0",
			"task1_extraprice": "0",
			"task2_extraprice": "1",
			"task3_extraprice": "2",
			"task4_extraprice": "2",
			"task_basecommission": "10"
		},
		"1": {
			"yuantong_express": "2.0",
			"yuantong_express_pay": "1.5"
		}
	});
	settingList = JSON.parse(settingList);
</script>






	<script>
	$('.type-check').on("click",function(){
			$(this).parent().next().toggle();
	})
</script>

			</div>
		</div>

		</form>
		<iframe id="target_iframe" name="target_iframe" src=""></iframe>
		<div style="display:none">
			<iframe id="video_target_iframe" name="video_target_iframe" src=""></iframe>
			<form method="post" target="video_target_iframe" id="FileUploadForm" name="FileUploadForm" enctype="multipart/form-data">
				<input type="file" id="upload_file_name" name="file" value="" />
			</form>
		</div>
		<script type="text/javascript" src="js/taskf700.js"></script>
		<script type="text/javascript" src="js/releasetask_new.js"></script>
		<script type="text/javascript" src="js/task2.js"></script>
		<!--<script type="text/javascript" src="js/ysr/task2.js?v=10"></script>-->
		<script>
			$('.hbxj').on('click',function(){
				$(".hbxj_show").toggle();
			})
			
			var task_money = 3;
			var haoping1 = '1';
			var haoping2 = '0';
			var haoping3 = '0';
			var haoping4 = '4';
			var isTaoke = '';
			var isDefinedImg = '';

			if(isTaoke == '1') {
				$('#isTaoke1').attr('checked', true);
			}
			if(isDefinedImg == '1') {
				$('#isDefinedImg').attr('checked', true);
				$('#definedImg').show();
				var imgs = '';
				if(imgs != '') {
					var jimgs = $.parseJSON(imgs);
					for(var i in jimgs) {
						var img = jimgs[i];
						$('#' + img).attr('checked', true);
					}
				}
			}

		
			var publishDate = '0';
			if(publishDate == '1') {
				$("input[name=publishDate][value=1]").attr("checked", true);
			} else {
				$("input[name=publishDate][value=0]").attr("checked", true);
			}

			showTimer(publishDate);

			initItemList1(1, '', '', '', '');
			initItemList1(2, '', '', '', '');
			initItemList1(3, '', '', '', '');
			initItemList1(4, '', '', '', '');
			initItemList1(5, '', '', '', '');

			imageUpload.init('imageUrl2', '', 'task');
			imageUpload.init('imageUrl3', '', 'task');

			imageUpload.init('imgUrl1', '', 'task');

			imageUpload.init('imgUrl2', '', 'task');

			imageUpload.init('imgUrl3', '', 'task');

			var taskType = parseInt($('#taskType').val());
			var taskTypeItem = '104';
			var competeBuy, competeCollection, competeShopcart;
			if(taskTypeItem == '114') {
				imageUpload.init('competeImageUrl1', '', 'task');

				competeBuy = '';
				if(competeBuy == '1') {
					$("input[name=competeBuy1][value=1]").attr("checked", true);
				} else {
					$("input[name=competeBuy1][value=0]").attr("checked", true);
				}
				competeCollection = '';
				if(competeCollection == '0') {
					$("input[name=competeCollection1][value=0]").attr("checked", true);
				} else {
					$("input[name=competeCollection1][value=1]").attr("checked", true);
				}
				competeShopcart = '';
				if(competeShopcart == '0') {
					$("input[name=competeShopcart1][value=0]").attr("checked", true);
				} else {
					$("input[name=competeShopcart1][value=1]").attr("checked", true);
				}
				imageUpload.init('competeImageUrl2', '', 'task');

				competeBuy = '';
				if(competeBuy == '1') {
					$("input[name=competeBuy2][value=1]").attr("checked", true);
				} else {
					$("input[name=competeBuy2][value=0]").attr("checked", true);
				}
				competeCollection = '';
				if(competeCollection == '0') {
					$("input[name=competeCollection2][value=0]").attr("checked", true);
				} else {
					$("input[name=competeCollection2][value=1]").attr("checked", true);
				}
				competeShopcart = '';
				if(competeShopcart == '0') {
					$("input[name=competeShopcart2][value=0]").attr("checked", true);
				} else {
					$("input[name=competeShopcart2][value=1]").attr("checked", true);
				}
				imageUpload.init('competeImageUrl3', '', 'task');

				competeBuy = '';
				if(competeBuy == '1') {
					$("input[name=competeBuy3][value=1]").attr("checked", true);
				} else {
					$("input[name=competeBuy3][value=0]").attr("checked", true);
				}
				competeCollection = '';
				if(competeCollection == '0') {
					$("input[name=competeCollection3][value=0]").attr("checked", true);
				} else {
					$("input[name=competeCollection3][value=1]").attr("checked", true);
				}
				competeShopcart = '';
				if(competeShopcart == '0') {
					$("input[name=competeShopcart3][value=0]").attr("checked", true);
				} else {
					$("input[name=competeShopcart3][value=1]").attr("checked", true);
				}
			} else if(taskTypeItem == '121' || taskTypeItem == '122' || taskTypeItem == '123' || taskTypeItem == '124' || taskTypeItem == '125' || taskTypeItem == '126' || taskTypeItem == '129') {
				imageUpload.init('imgUrl4', '', 'task');
				imageUpload.init('imgUrl5', '', 'task');
				imageUpload.init('imgUrl6', '', 'task');
				imageUpload.init('imgUrl7', '', 'task');
				imageUpload.init('imgUrl8', '', 'task');
			}

			$("input[name=taskTypeItemRadio][value=" + taskTypeItem + "]").attr("checked", true);

			$('.wrap-all-limit').show();
			textTaskInit();
			imageTaskInit();
			videoTaskInit();

			var limitNewReg = '';
			var limitFirstOrder = '';
			var isAddCompare = '';
			if(taskTypeItem == '119') {
				if(limitNewReg == '1') {
					$('#limitNewReg').attr('checked', true);
				}
				if(limitFirstOrder == '1') {
					$('#limitFirstOrder').attr('checked', true);
				}
				if(isAddCompare == '1') {
					$('#isAddCompare').attr('checked', true);
				}
			}

			if(taskType == 1) {
				getExpress('');

				initItemList2(1, '', '', '', '');
				initItemList2(2, '', '', '', '');
				initItemList2(3, '', '', '', '');
				initItemList2(4, '', '', '', '');
				initItemList2(5, '', '', '', '');
				getComment('2');

				initItemList3(1, '', '', '', '');
				initItemList3(2, '', '', '', '');
				initItemList3(3, '', '', '', '');
				initItemList3(4, '', '', '', '');
				initItemList3(5, '', '', '', '');
				getComment('3');

				initItemList4(1, '', '', '', '');
				initItemList4(2, '', '', '', '');
				initItemList4(3, '', '', '', '');
				initItemList4(4, '', '', '', '');
				initItemList4(5, '', '', '', '');
				getComment('4');

				var freeShopping = '';
				if(freeShopping == '1') {
					$('#freeShopping1').attr('checked', true);
				} else if(freeShopping == '2') {
					$('#freeShopping2').attr('checked', true);
				}
			}

			function setTaskTypeItem(taskTypeItem) {
				$('#taskTypeItem').val(taskTypeItem);
			}

			var bTempClose = false;

			function doDaojishi() {
				layer.open({
					type: 1,
					title: false //不显示标题栏
						,
					closeBtn: false,
					area: '350px;',
					shade: 0.8,
					id: 'LAY_layuipro' //设定一个id，防止重复弹出
						,
					btn: ['关闭'],
					btnAlign: 'c',
					yes: function(index, layero) {
						//bTempClose && layer.close(index);
						layer.close(index);
					},
					moveType: 1 //拖拽模式，0或者1
						,
					content: '<div style="padding: 30px 20px;; line-height: 22px; background-color: #393D49; color: #fff; font-weight: 300;">任务期间请关闭淘宝客、村淘、分享有赏等淘客活动，若因淘客引起的佣金支出由商家自己承担！</div>'
				});			

				this.lefttime = 5;
				this.timeer = null;
				var e = this;
				this.countdown = function() {
					clearTimeout(e.timeer);
					$(".layui-layer-btn0").html(e.lefttime + "秒后关闭");
					e.lefttime--;
					if(e.lefttime > 0) {
						e.timeer = setTimeout(e.countdown, 1000);
					} else {
						e.lefttime = 60;
						$(".layui-layer-btn0").html("关闭");
						$('.layui-layer-btn0').attr('style', '');
						bTempClose = true;
					}
				};

			}

			

			var currVideoId = '';
			var fileInput = $('#upload_file_name').get(0);
			fileInput.addEventListener("change", function(e) {

				var file = document.getElementById('upload_file_name');
				var ext = file.value.substring(file.value.lastIndexOf(".") + 1)
					.toLowerCase();

				if(ext != 'mp4') {
					alert("视频的格式必须为mp4格式！");
					return;
				}

				$('#span_' + currVideoId).html('正在上传视频...');
				// document.FileUploadForm.submit();

				$.ajax({
					url: "http://www.zhuanzhuanduoweb.com:17008/api/upload",
					type: "POST",
					data: new FormData($('#FileUploadForm')[0]),
					contentType: false,
					processData: false,
					success: function(res) {

						$('#' + currVideoId).val(res.data);
						$('#span_' + currVideoId).html(res.data);

					},
					complete: function() {
						imageProcess = false;
					},
					error: function() {
						alert("上传失败！");
						$("#imgWait").hide();
					}
				});

			}, false);
			//
			// $('#video_target_iframe').on('load', function () {
			//     var responseText = $('iframe')[1].contentDocument.body.textContent;
			//     console.log(responseText)
			//     var d = $.parseJSON(responseText) || {};
			//     if (d.success == true) {
			//         imageCallback(d.data);
			//     } else {
			//         $('#span_' + currVideoId).html('');
			//         alert(d.msg);
			//     }
			// });

			$('.upvideo').on('click', function() {
				if(imageProcess) {
					$.prompt("视频上传中，请稍后...");
					return false;
				}
				var e = $(this);
				currVideoId = e.attr('imgid');
				imageCallback = function(data) {
					$('#' + currVideoId).val(data.url);
					$('#span_' + currVideoId).html(data.url);
				};
				$('#upload_file_name').click();
				$('#upload_file_name').val('');
			});

			       
			$('#publishDateStartTime').datetimepicker({
				language: 'zh-CN',
				format: 'hh:ii',
				autoclose: true,
				minView: 0,
				minuteStep: 1,
				todayHighlight: true,
				startDate: new Date(),
				startView: 1
			});
			$('#publishDateEndTime').datetimepicker({
				language: 'zh-CN',
				format: 'hh:ii',
				autoclose: true,
				minView: 0,
				minuteStep: 1,
				todayHighlight: true,
				startDate: new Date(),
				startView: 1
			});
			$('#publishDateDate').datetimepicker({
				language: 'zh-CN',
				format: 'yyyy-mm-dd',
				autoclose: true,
				pickDate: true,
				pickTime: false,
				startDate: new Date(),
			});

			function getNowFormatDate() {
				var date = new Date();
				var seperator1 = "-";
				var seperator2 = ":";
				var month = date.getMonth() + 1;
				var strDate = date.getDate();
				var strHours = date.getHours();
				var strMinutes = date.getMinutes();
				if(month >= 1 && month <= 9) {
					month = "0" + month;
				}
				if(strDate >= 0 && strDate <= 9) {
					strDate = "0" + strDate;
				}
				if(strHours >= 0 && strHours <= 9) {
					strHours = "0" + strHours;
				}
				if(strMinutes >= 0 && strMinutes <= 9) {
					strMinutes = "0" + strMinutes;
				}
				var currentdate = date.getFullYear() + seperator1 + month + seperator1 + strDate +
					" " + strHours + seperator2 + strMinutes;
				return currentdate;
			}
		</script>
		<script>
			function clearNoNum(obj) {
				obj.value = obj.value.replace(/[^\d.]/g, ""); //清除“数字”和“.”以外的字符
				obj.value = obj.value.replace(/\.{2,}/g, "."); //只保留第一个. 清除多余的
				obj.value = obj.value.replace(".", "$#$").replace(/\./g, "").replace("$#$", ".");
				obj.value = obj.value.replace(/^(\-)*(\d+)\.(\d\d).*$/, '$1$2.$3'); //只能输入两个小数
				if(obj.value.indexOf(".") < 0 && obj.value != "") { //以上已经过滤，此处控制的是如果没有小数点，首位不能为类似于 01、02的金额
					obj.value = parseFloat(obj.value);
				}
			}
		</script>
		<script>
			var arr = "add2";
			if("3" == 3) {
				$('#isAllowCopy').attr('checked', true);
				$('#planeCopy').css("display", "none");
			}
			if("3" == 4) {
				$('#isNeedScreenshot').attr('checked', false);
				$('#limit-screenshot').css("display", "none");
			}

			if("1" == 2) {
				$('#limit-HighQuality').css("display", "none");
				$('#limit-level').css("display", "none");
				// $('#limit-huabei').css("display", "none");
			}

			if(arr == "re_add") {
				$('#productName1').val("");
				$('#productUrl1').val("");
				$('#productActualPrice1').val("");
				$('#productCount1').val("");
				$('#productPublicPrice1').val("");
				// 主图1
				imageUpload.init('imageUrl1', "", 'task');

				// 主图2
				if("") {
					$('#product_attached_2').show();
					$('#productUrl2').val("");
					$('#productActualPrice2').val("");
					$('#productCount2').val("");
					// 主图
					imageUpload.init('imageUrl2', "", 'task');
				}

				// 主图3
				if("") {
					$('#product_attached_3').show();
					$('#productUrl3').val("");
					$('#productActualPrice3').val("");
					$('#productCount3').val("");
					// 主图
					imageUpload.init('imageUrl3', "", 'task');
				}

				// 包不包邮
				if("" != 1) {
					$('#freeShopping1').attr('checked', true);
				} else {
					$('#freeShopping2').attr('checked', true);
				}
				// 商品排序
				if("" == "综合") {
					$('#orderMethod2').attr('checked', true);
				} else if("" == "销量") {
					$('#orderMethod1').attr('checked', true);
				} else {
					$('#orderMethod3').attr('checked', true);
				}
				// 收货人
				$('#receivingNum').val("");
				$('#startPrice').val("");
				$('#endPrice').val("");
				$('#province').val("");

				// 商品所在地
				var $address = $('.goodsaddress');
				var $upaddress = $('.upaddress');
				$upaddress.attr('value', "");
				$address.find('span:first').text("");
				$address.attr('title', "");

				// 订单留言
				$('#orderMsg').val("");

				// 任务类型和单数
				var $tempCount = new Array(0, 0, 0, 0, 0);
				var $taskInfoCount = '0';
				var $taskInfo = null;
				for(var $i = 0; $i < $taskInfoCount; $i++) {
					var $type = $taskInfo[$i]['type'];
					$tempCount[$type] += 1;
					var haoping = '#haoping' + $type + '_' + ($tempCount[$type]);
					var keyWord = '#keyword_' + $type + '_' + ($tempCount[$type]);
					var num = '#num_' + $type + '_' + ($tempCount[$type]);
					$(haoping).show();
					$(keyWord).val($taskInfo[$i]['keyword']);
					$(num).val($taskInfo[$i]['taskcount']);

					if($type != 1) {
						$('#comment_' + $type + '_' + $tempCount[$type]).show();
					}
					// 指定文字好评
					if($type == 2) {
						var remark = '#remark_2_' + ($tempCount[$type]);
						$(remark).val($taskInfo[$i]['praisecontent']);
					}
					// 指定图片好评
					if($type == 3) {
						// $('#remark_3_'+$tempCount[$type]).val($taskInfo[$i]['praisecontent']);
						$('#sku_3_' + $tempCount[$type]).val($taskInfo[$i]['specification']);
						
					}
					// 指定视频好评
					if($type == 4) {
						// $('#remark_4_'+$tempCount[$type]).val($taskInfo[$i]['praisecontent']);
						$('sku_4_' + $tempCount[$type]).val($taskInfo[$i]['specification']);
					}
				}

				for(var $i = 1; $i < $tempCount.length; $i++) {
					if($tempCount[$i] >= 1) {
						var commonkey = '#commonKey' + $i;
						var haoping = '#haoping' + $i;
						$(commonkey).attr('checked', true);
						$(haoping).show();
					}
				}

				// 增值服务
				$('#jiashang').val("");
				if("" > 0) {
					$('#isHighQuality').attr('checked', true);
				}
				if("") {
					$('#isLimitArea').attr('checked', true);
					$('#isLimitArea').parents('.limit-user').find('.limit-ipt').show();
					var $firadio = $('#isLimitArea').parents('.limit-user').find('input[type="checkbox"]');
					// $questinfo['limit_area']
					var splitArray = "".split(',');
					var areaArray = new Array();
					for(var value in $firadio) {
						areaArray[$firadio[value].value] = $firadio[value];
					}

					var $showarea = $('.seled-lim-area .showarea');
					var areas = $showarea.text();
					for(var value in splitArray) {
						if(areas.length != 0) {
							areas += '、' + splitArray[value];
						} else {
							areas += splitArray[value];
						}
						$(areaArray[splitArray[value]]).attr('checked', 'checked');
					}

					$showarea.text(areas);
					$('#limitareas').val(areas);
				}
				if("" > 0) {
					$('#isLimitAge').attr('checked', true);
					$('#isLimitAge').parents('.limit-user').find('.limit-ipt').show();
					var $firadio = $('#isLimitAge').parents('.limit-user').find('input[type="radio"]');
					$($firadio["" - 1]).attr('checked', 'checked');
				}
				if("" > 0) {
					$('#isLimitSex').attr('checked', true);
					$('#isLimitSex').parents('.limit-user').find('.limit-ipt').show();
					var $firadio = $('#isLimitSex').parents('.limit-user').find('input[type="radio"]');
					$($firadio["" - 1]).attr('checked', 'checked');
				}
				if("" > 0) {
					$('#limitZuan').attr('checked', true);
				}
				if("" > 0) {
					$('#isLimitCategory').attr('checked', true);
					$('#isLimitCategory').parents('.limit-user').find('.limit-ipt').show();
					var $firadio = $('#isLimitCategory').parents('.limit-user').find('input[type="checkbox"]');
					$($firadio[""]).attr('checked', 'checked');
				}

				if("" > 0) {
					$('#isSaveShop').attr('checked', true);
				} else {
					$('#isSaveShop').removeAttr('checked');
				}
				if("" > 0) {
					$('#isSaveProduct').attr('checked', true);
				} else {
					$('#isSaveProduct').removeAttr('checked');
				}

				if("" == 1) {
					$('#isNeedScreenshot').removeAttr('checked');
				}
				if("" == 0) {
					$('#isChat').removeAttr('checked');
				}
				if("" == 0) {
					$('#isHuaBei').removeAttr('checked');
				}
				if("" == 0) {
					$('#isCreditCard').removeAttr('checked');
				}
				if("" == 1) {
					$('#isAllowCoupon').attr('checked', true);
				}
				if("" == 1) {
					$('#isAllowCopy').attr('checked', true);
				}
				if("" == 1) {
					$('#isForceConfirm').attr('checked', true);
				}

				// 定时发布
				if("" == 2) {
					var pulishList = JSON.parse(null);

					for(var i = 0; i < pulishList.length; i++) {
						var tempArray = pulishList[i];
						dateAppend("", tempArray['intervalTime'], tempArray['releaseCount'], tempArray['intervalCount']);
					}
				} else {
					dateAppend(getNowFormatDate(), "", "", 1);
				}

				// 商家附加要求
				imageUpload.init('imgUrl1', "", 'task');
				imageUpload.init('imgUrl2', "", 'task');
				imageUpload.init('imgUrl3', "", 'task');
				$('#remark').val("");

				changTotalCount();
				changReleaseCount();
			} else {
				dateAppend(getNowFormatDate(), "", "", 1);
				imageUpload.init('imageUrl1', '', 'task');

				if(haoping1 == '1') {
					$('#commonKey1').attr('checked', true);
					$('#haoping1').show();
				}
				if(haoping2 == '1') {
					$('#commonKey2').attr('checked', true);
					$('#haoping2').show();
				}
				if(haoping3 == '1') {
					$('#commonKey3').attr('checked', true);
					$('#haoping3').show();
				}
				if(haoping4 == '1') {
					$('#commonKey4').attr('checked', true);
					$('#haoping4').show();
				}

				for(var $i = 1; $i < 10; $i++) {
					for(var $i = 1; $i < 10; $i++) {

					}
				}
				imageUpload.preview('imgUrl1_3_1', '');
				imageUpload.preview('imgUrl2_3_1', '');
				imageUpload.preview('imgUrl3_3_1', '');
				imageUpload.preview('imgUrl4_3_1', '');
				imageUpload.preview('imgUrl5_3_1', '');

				imageUpload.preview('imgUrl1_3_2', '');
				imageUpload.preview('imgUrl2_3_2', '');
				imageUpload.preview('imgUrl3_3_2', '');
				imageUpload.preview('imgUrl4_3_2', '');
				imageUpload.preview('imgUrl5_3_2', '');
				imageUpload.preview('imgUrl1_3_3', '');
				imageUpload.preview('imgUrl2_3_3', '');
				imageUpload.preview('imgUrl3_3_3', '');
				imageUpload.preview('imgUrl4_3_3', '');
				imageUpload.preview('imgUrl5_3_3', '');
				imageUpload.preview('imgUrl1_3_4', '');
				imageUpload.preview('imgUrl2_3_4', '');
				imageUpload.preview('imgUrl3_3_4', '');
				imageUpload.preview('imgUrl4_3_4', '');
				imageUpload.preview('imgUrl5_3_4', '');
				imageUpload.preview('imgUrl1_3_5', '');
				imageUpload.preview('imgUrl2_3_5', '');
				imageUpload.preview('imgUrl3_3_5', '');
				imageUpload.preview('imgUrl4_3_5', '');
				imageUpload.preview('imgUrl5_3_5', '');
			}
			
			
			
		
			
			
		</script>
		<div id="ft">
			<div class="w-1k pr">
				<p class="reginfo">CopyRight 2018-2022, XmTyq Inc. All Rights Reserved&nbsp; 闽ICP备1234567号 投诉QQ：xxxxxxxx</p>
			</div>
		</div>

		<div id="online_kefu">
			<div id="floatTools" class="rides-cs" style="height:246px;">
				<div class="floatL">
					<a style="display:block" id="aFloatTools_Show" class="btnOpen" title="查看在线客服" style="top:20px" href="javascript:void(0);">展开</a>
					<a style="display:none" id="aFloatTools_Hide" class="btnCtn" title="关闭在线客服" style="top:20px" href="javascript:void(0);">收缩</a>
				</div>
				<div id="divFloatToolsView" class="floatR hide" style="height:237px;width:140px;">
					<div class="cn">
						<h3 class="titZx" style="margin: 0;">在线客服</h3>
						<ul>
							<li><span>商家客服</span>
								<a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=2723339498&site=qq&menu=yes"><img border="0" src="http://s.zhuan.net/v12/images/online.png" alt="点击这里给我发消息" title="点击这里给我发消息" /></a>
							</li>
							<li><span>充值客服</span>
								<a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=2723339498&site=qq&menu=yes"><img border="0" src="http://s.zhuan.net/v12/images/online.png" alt="点击这里给我发消息" title="点击这里给我发消息" /></a>
							</li>
							<li style="height:115px;border-bottom:0px;margin:4px;">
								<span><img border="0" src="images/qq_qrcode.jpg" id="imgqrcode" style="width:110px;"></span>
							</li>
						</ul>
					</div>
				</div>
			</div>
		</div>

		<div class="sider hide">
			<a href="javascript: void(0);" class="goTop">
				<img src="images/gotop.jpg" alt="回到顶部" title="回到顶部" style="vertical-align: middle;">
			</a>
		</div>

		<div style="display:none">
			<iframe id="target_iframe" name="target_iframe" src=""></iframe>
			<form method="post" action="#" id="imageForm" enctype="multipart/form-data">
				<div id="div_fileupload"></div>				
			</form>
		</div>

		<script src="js/all.min.js"></script>
						<script src="js/main1.js"></script>
	</body>

</html>